<template>
    <el-dialog
      :title="headertitle"
      :visible="centerDialogVisible"
      :close-on-click-modal="false"
      :modal-append-to-body='true'
      :append-to-body='true'
      @close="cancel"
      :width="width"
      :fullscreen="fullscreen"
      center
    >

      <div class="dialog01-title-1" v-if="title!==''"><i i class="iconfont icon-anli" style="color:#2fc0cd;"></i>{{title}}</div>
      <div class="dialog01-content-one"><slot name="content-one"></slot></div>
      <div class="dialog01-content-two"><slot name="content-two"></slot></div>
      <span slot="footer" class="dialog-footer">
        <slot name="footer-btn"></slot>
      </span>
    </el-dialog>
</template>
<script>
export default {
  name: "dialog01",
  props: {
    centerDialogVisible: {
      default: false
    },
    width:{
        default:"70%"
    },
    title:{
        default:""
    },
    headertitle:{
      default:""
    },
    fullscreen:{
      default:false
    }
  },
  methods: {
    cancel() {
      this.$emit("cancel", "false");
    }
  }
};
</script>
<style scoped>
.dialog01-title-1{
    background-color: #e6e6e6;
    padding: 5px 5px;
    height: 30px;
    font-family: "SourceHanSansCN-Bold";
    font-size: 16px;
    color:#4d4d4d;
    line-height:30px;
    margin-bottom:10px;
}
.dialog01-title-1 i{
    font-size: 18px;
    margin: 3px;
}
.dialog01-content-one{
  margin: 0px 0px 10px 0px;
}
.dialog01-content-two{
  margin: 0px 0px 10px 0px;
}

</style>
<style scoped>
.el-dialog__wrapper>>>.el-dialog {
  border-radius: 0px !important;
}
.el-dialog__wrapper>>>.el-dialog__header {
  padding: 5px;
  background-color: #f2f2f2;
  height: 30px;
}
.el-dialog__wrapper>>>.el-dialog__header .el-dialog__title {
  font-family: "SourceHanSansCN-Medium";
  font-size: 18px;
}
.el-dialog__wrapper>>>.el-dialog__headerbtn {
  top: 10px;
  right: 10px;
}
.el-dialog__wrapper>>>.el-dialog--center .el-dialog__body {
  padding: 20px 10px 10px 10px;
}

.dialog01-content-one>>>.el-input__inner{
    height: 32px!important;
 }
.dialog01-content-one>>>.el-input__icon{
    line-height: 32px!important;
 }

 .dialog01-content-one>>>.el-range-editor.el-input__inner{
    height: 32px!important;
 }
.dialog01-content-one>>>.el-range-editor.el-input__inner{
    line-height: 32px!important;
 }
 .dialog01-content-one>>>.el-input__icon{
   height:auto!important;
 }
 .dialog01-content-one>>>.el-date-editor .el-range-separator{
   height:auto!important;
 }
</style>
